package cn.edu.zust.userservice.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select password from users where account = #{account}")
    String getPasswordByAccount(String account);

    @Select("select account from users where id = #{id}")
    String getAccountById(int id);

    @Select("select id from users where account = #{account}")
    int getIdByAccount(String account);
}
